package com.cn.proxy.dynamicproxy;

import java.lang.reflect.Proxy;

public class DynamicProxyFactory {
	public static Object createProxy(Object target) {
		return Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(),
				new MyHandler(target));
	}
}
